//
//  FCBaseCollectionView.h
//  MatrixI003
//
//  Created by mac on 2021/1/21.
//  Copyright © 2021 Summer. All rights reserved.
//  FCBaseCollectionView  FCBaseCCellModel

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN


@interface FCBaseCCellModel : NSObject

@property (nonatomic, copy, nonnull) NSString *name;

@property (nonatomic) BOOL selected;
//用于计算文字大小
@property (strong, nonatomic) UIFont *font;

@property (nonatomic, readonly) CGSize contentSize;

- (instancetype)initWithName:(NSString *)name font:(UIFont *)font;

 
@end


@interface FCBaseCollectionView : UIView

@property (strong, nonatomic) NSMutableArray <FCBaseCCellModel *> *dataArr;

@property (nonatomic, copy) void (^didSelectItemAtIndexPathBlock)(NSIndexPath *indexPath );

/// 默认高度为当前view 高度 
//@property (nonatomic, readonly) CGSize contentSize;

@property (strong, nonatomic) UICollectionView *collectionView;
- (void) bindData :(NSArray * ) data;
- (void) initUI;
- (void) config;

@end

@interface FCBaseCCel : UICollectionViewCell

@property(nonatomic,weak) UILabel * lab_title;

- (void) setup;

@property (nonatomic, strong) FCBaseCCellModel *  model;

@end

NS_ASSUME_NONNULL_END
